import { exSwitch, exInput, exSelect, exColorPicker } from '@ve/common/components/extension'

export default {
  VERSION: '20220408',
  type: 'uiText',
  name: '文本组件',
  icon: 'link',
  svg: 'wenbenzujian',
  //数据别名
  // dataName: 'uiText_data',
  //扩展
  extension: {
    textContent: exInput('文字内容', '文本组件'),
    fontSize: exInput('文字大小', '12px', '文字大小以px为单位'),
    fontWeight: exSelect('字体粗细', 'font-thin', [
      { value: 'font-thin', label: '默认' },
      { value: 'font-extralight', label: '200' },
      { value: 'font-light', label: '300' },
      { value: 'font-normal', label: '400' },
      { value: 'font-medium', label: '500' },
      { value: 'font-semibold', label: '600' },
      { value: 'font-bold', label: '700' },
      { value: 'font-extrabold', label: '800' },
      { value: 'font-black', label: '900' },
    ]),
    colorText: exColorPicker('字体颜色', '#000000'),
    textAlign: exSelect('对齐方式', 'text-left', [
      { value: 'text-left', label: '左' },
      { value: 'text-center', label: '中' },
      { value: 'text-right', label: '右' },
      { value: 'text-justify', label: 'justify' },
    ]),
    padding: {
      type: 'exInputNumber',
      name: '内边距',
      value: 1,
      min: 0,
      max: 12,
    },
    underline: exSwitch('有无下划线', false),
    hidden: exSwitch('隐藏', false),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
